<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      margin: 0;
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .container {
      width: 96vw;
      display: flex;
      flex-direction: column;
    }

    .container div {
      width: inherit;
      height: 6vw;
      border-bottom: 0.2vw solid var(--border-color);
      background-image: repeating-linear-gradient(
        to right,
        var(--drak-color),
        var(--drak-color) 6vw,
        var(--light-color) 6vw,
        var(--light-color) 12vw
      );
      background-position: calc(var(--offset) * 1vw) 0;
      --border-color: gray;
      --drak-color: black;
      --light-color: white;
    }

    .container div:first-child {
      border-top: 0.2vw solid var(--border-color);
    }

    .container div:nth-child(4n + 1) {--offset: 1.5}  
    .container div:nth-child(even) {--offset: 3.0}  
    .container div:nth-child(4n + 3) {--offset: 4.5}  

  </style>
</head>
<body>
  <figure class="container">
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
  </figure>
</body>
</html>